package com.user.query.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.user.query.dao.base.BaseMapper;
import com.user.query.model.AdminArea;
import com.user.query.utils.Page;

public interface AdminAreaMapper extends BaseMapper {

    int insert(AdminArea record);

    AdminArea selectByPrimaryKey(String areaId);

    int updateByPrimaryKeySelective(AdminArea record);

    AdminArea findByAreaNo(String areaNo);
    
    List<AdminArea>  findAllByPage(@Param(value="keyWord")String keyWord,
    		@Param(value="page")Page page);
    
    int countAllByPage(@Param(value="keyWord")String keyWord);
    
    List<AdminArea> findAllByLevel(Integer level);
    //过滤直管县
    List<AdminArea> findAllByLevel2(Integer level);
    

    List<AdminArea> likeByAreaNo(@Param("areaNo")String areaNo, @Param("level")Integer level);
    
    
    List<AdminArea> findAllByToNo(String topNo);

	List<AdminArea> findAll();
	
	/**
	 * 查询考试所需区域列表
	 * @return
	 */
	List<AdminArea> findToExam(@Param("city")String city);

	List<AdminArea> findCityByAreaNo(@Param("areaNo")String areaNo);
	
}